package com.ordering.entity;

import java.io.Serializable;

/**
 * 订单详情表实体
 * @author Administrator
 *
 */
public class OrderItem implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 订单明细状态 1-购物车
	 */
	public static final int STATUS_CART = 1;
	/**
	 * 订单明细状态 2-已生成订单
	 */
	public static final int STATUS_ORDER = 2;
	/**
	 * 订单明细状态 3-已删除
	 */
	public static final int STATUS_DEL = 3;
	
    private int id;
    private int orderId;
    private int productId;
    private String productName;
    private int productNum;
    private int price;
    private int productType;
    private int userId;
    private int status;
    
    //多对一关联Order
    private Order order;
    
    public Order getOrder()
    {
        return order;
    }
    public void setOrder(Order order)
    {
        this.order = order;
    }
    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }
    public int getOrderId()
    {
        return orderId;
    }
    public void setOrderId(int orderId)
    {
        this.orderId = orderId;
    }
    public int getProductId()
    {
        return productId;
    }
    public void setProductId(int productId)
    {
        this.productId = productId;
    }
    public String getProductName()
    {
        return productName;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }
    public int getProductNum()
    {
        return productNum;
    }
    public void setProductNum(int productNum)
    {
        this.productNum = productNum;
    }
    public int getPrice()
    {
        return price;
    }
    public void setPrice(int price)
    {
        this.price = price;
    }
    public int getProductType()
    {
        return productType;
    }
    public void setProductType(int productType)
    {
        this.productType = productType;
    }
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
    
    
}
